package com.allwees.bs.core.model.coupon.constant;

import com.baomidou.mybatisplus.core.enums.IEnum;
import lombok.Getter;

/**
 * 积分变动类型枚举
 */
@Getter
public enum PointChangeTypeEnum implements IEnum<String> {

    /**
     * 注册
     */
    SYSTEM_REGISTERED(ChangeDirection.POSITIVE),

    /**
     * 评论
     */
    SYSTEM_REVIEW(ChangeDirection.POSITIVE),

    /**
     *  兑换
     */
    SYSTEM_EXCHANGE(ChangeDirection.NEGATIVE),

    /**
     * 使用
     */
    SYSTEM_USE(ChangeDirection.NEGATIVE);

    private ChangeDirection pointActiveType;

    PointChangeTypeEnum(ChangeDirection pointActiveType) {
        this.pointActiveType = pointActiveType;
    }

    @Override
    public String getValue() {
        return name();
    }
}
